package com.example.spidertp.core.service;

import com.example.spidertp.core.model.param.SpiderThreadPoolArgsParam;
import com.example.spidertp.core.model.vo.SpiderThreadPoolArgsVo;
import com.example.spidertp.core.model.vo.SpiderThreadPoolLivingStateVo;

/**
 * @author xiong.bo
 * @version 1.0
 * @date 2022/9/17 4:04 下午
 */

public interface ArgumentService {

    /**
     * 获取指定的线程池的核心参数配置
     *
     * @param name
     * @return
     */
    SpiderThreadPoolArgsVo getTreadPollArgs(String name);

    /**
     * 修改线程池的核心参数
     *
     * @param param
     * @return
     */
    SpiderThreadPoolArgsVo adjustPollArgs(SpiderThreadPoolArgsParam param);


    /**
     * 获取某个线程池的生存状态信息
     *
     * @param name
     * @return
     */
    SpiderThreadPoolLivingStateVo getTreadPollLivingState(String name);

}
